package com.tedu.interceptor.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {
    @RequestMapping("/reg")
    public String reg(){
        System.out.println("UserController的reg方法执行了");
        return "注册成功";
    }

    @RequestMapping("/login")
    public String login(){
        System.out.println("UserController的login方法执行了");
        return "登录成功";
    }

    @RequestMapping("/delete")
    public String delete(){
        System.out.println("UserController的delete方法被执行了");
        return "删除成功";
    }
}
